package com.dmlll.controller;

import com.dmlll.domain.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;


@Controller
public class SystemController {
    @RequestMapping("/toLogin")
    public String login(){
        return "/index/login";
    }

    /**
     * 跳转到主页面
     * @return
     */
    @RequestMapping("/toMain")
    public String toMain(){
        return "/index/index";
    }

    /**
     * 跳转到采购单
     * @return
     */
    @RequestMapping("/toPurchase")
    public String toDrugCategory(){
        return "/purchase/purchaseManager";
    }

    /**
     * 跳转到采购单维护
     * @return
     */
    @RequestMapping("toPurchaseMaintain")
    public String toPurchaseMaintain(){
        return "/purchase/purchaseMaintain";
    }
    /**
     * 跳转到采购目录
     * @return
     */
    @RequestMapping("toPurchaseCatalog")
    public String toPurchaseCatalog(){
        return "/purchaseCatalog/purchaseCatalog";
    }

    /**
     * 跳转到采购入库
     * @return
     */
    @RequestMapping("toPurchaseInput")
    public String toPurchaseInput(){
        return "/purchaseInput/purchaseInput";
    }

    @RequestMapping("toNoPermission")
    public String toNoPermission(){
        return "/index/403";
    }

    /**
     * 跳转到供应商退货
     * @return
     */
    @RequestMapping("toProviderOutput")
    public String toProviderOutput(){
        return "/providerOutput/providerOutput";
    }

    /**
     * 跳转到供应商结算
     * @return
     */
    @RequestMapping("toProviderClose")
    public String toProviderClose(){
        return "/close/providerClose";
    }

    /**
     * 跳转到医院结算管理
     * @return
     */
    @RequestMapping("toCloseManager")
    public String toCloseManager(){
        return "/close/closeManager";
    }
    /**
     * 跳转到医院结算维护
     * @return
     */
    @RequestMapping("toCloseMaintain")
    public String toCloseMaintain(){
        return "/close/closeMaintain";
    }
    /**
     * 跳转到医院结算目录
     * @return
     */
    @RequestMapping("toCloseCatalog")
    public String toCloseCatalog(){
        return "/close/closeCatalog";
    }

    /**
     * 跳转到医院添加采购目录
     * @return
     */
    @RequestMapping("toHospitalCatalog")
    public String toHospitalCatalog(){
        return "/hospital/DrugSelect";
    }

    /**
     * 跳转到药品信息查询
     * @return
     */
    @RequestMapping("toDrugMessageShow")
    public String toDrugMessageShow(){
        return "/hospital/chakanyaopxiangqing";
    }
    /**
     * 跳转到药品信息查询
     * @return
     */
    @RequestMapping("toDrugCatalogShow")
    public String toDrugCatalogShow(){
        return "/hospital/caigoumulu";
    }
    /**
     * 跳转到区域管理
     * @return
     */
    @RequestMapping("toLocationManager")
    public String toLocationManager(){
        return "/location/locationManager";
    }
    /**
     * 跳转到数据字典管理
     * @return
     */
    @RequestMapping("toDataDictionaryManager")
    public String toDataDictionaryManager(){
        return "/dataDictionary/dataDictionaryManager";
    }
    /**
     * 跳转到用户管理
     * @return
     */
    @RequestMapping("toUserManager")
    public String toUserManager(){
        return "/user/userManager";
    }
    /**
     * 跳转到监督机构管理
     * @return
     */
    @RequestMapping("toSuperviseManager")
    public String toSuperviseManager(){
        return "/supervise/superviseManager";
    }
    /**
     * 跳转到监督机构药品信息维护
     * @return
     */
    @RequestMapping("toSuperviseDrugMassage")
    public String toSuperviseDrugMassage(){
        return "/supervise/SupplierAudit";
    }
    /**
     * 跳转到监督机构供货审核
     * @return
     */
    @RequestMapping("toSuperviseGoods")
    public String toSuperviseGoods(){
        return "/supervise/SupplierAudit";
    }
    /**
     * 跳转到监督机构药品信息管理
     * @return
     */
    @RequestMapping("toSuperviseDrugMessage")
    public String toSuperviseDrugMessage(){
        return "/supervise/drugMassageManager";
    }
    /**
     * 跳转到供应商管理
     * @return
     */
    @RequestMapping("toProviderManager")
    public String toProviderManager(){
        return "/provider/providerManager";
    }
    /**
     * 跳转到供应商管理
     * @return
     */
    @RequestMapping("toHospitalManager")
    public String toHospitalManager(){
        return "/hospital/hospitalManager";
    }
    /**
     * 跳转到采购单审核管理
     * @return
     */
    @RequestMapping("toPurchaseVerify")
    public String toPurchaseVerify(){
        return "/purchase/purchaseVerify";
    }
    /**
     * 跳转到供货商采购单处理
     * @return
     */
    @RequestMapping("toPurchaseDeal")
    public String toPurchaseDeal(){
        return "/purchase/Purchase_order_processing";
    }
    /**
     * 跳转到供应商确认供货
     * @return
     */
    @RequestMapping("toConfirmDelivery")
    public String toConfirmDelivery(){
        return "/provider/Confirm_the_delivery";
    }
    /**
     * 跳转到供应商药品品目维护
     * @return
     */
    @RequestMapping("toProviderCatalog")
    public String toProviderCatalog(){
        return "/provider/LtemMaintenance";
    }
    /**
     * 跳转到供应商取消供货
     * @return
     */
    @RequestMapping("toCancelDelivery")
    public String toCancelDelivery(){
        return "/provider/Cancel_the_supply";
    }
    /**
     * 跳转到供应商药品维护
     * @return
     */
    @RequestMapping("toProviderDrug")
    public String toProviderDrug(){
        return "/provider/Drug_maintain";
    }
    /**
     * 跳转到医院退货单
     * @return
     */
    @RequestMapping("toPurchaseOutput")
    public String toPurchaseOutput(){
        return "/hospital/AddSalesReturn";
    }
    /**
     * 跳转到医院采购目录管理
     * @return
     */
    @RequestMapping("toHospitalPurchase")
    public String toHospitalPurchase(){
        return "/purchase/DrugMaintain";
    }

}

